package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.sup.SuperEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "sc_mall_activity_ranking_cycles")
public class MallActivityRankingCycles extends SuperEntity implements Serializable {

    public MallActivityRankingCycles(Date startTime, Date endTime,Long rankingId,BigDecimal thresholdAmount) {
        this.startTime = startTime;
        this.endTime = endTime;
        this.rankingId = rankingId;
        this.thresholdAmount = thresholdAmount;
    }

    /**
     * 榜单id
     */
    @ApiModelProperty(value = "榜单id")
    @TableField(value = "ranking_id")
    private Long rankingId;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @TableField(value = "start_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @TableField(value = "end_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 门槛金额
     */
    @ApiModelProperty(value = "门槛金额")
    @TableField(value = "threshold_amount")
    private BigDecimal thresholdAmount;

}